#include <stdio.h>
int main_017(void) 
{
	double dividend = 2, divisor = 1;
	int i, n;
	double sum = 0.0, t;
	scanf_s("%d", &n);
	for (i = 1; i <= n; i++) 
	{
		sum += dividend / divisor;
		t = dividend;
		dividend += divisor;
		divisor = t;
	}
	printf("%f %f\n", dividend, divisor);
	printf("%.2f\n", sum);
	return 0;
}